import request from '@/utils/request'

// 查询场所信息列表
export function listBaseFieldInfo(query) {
  return request({
    url: '/system/baseFieldInfo/list',
    method: 'get',
    params: query
  })
}

//场所通道列表下拉查询
export function findBaseFieldInfo(query) {
  return request({
    url: '/system/baseFieldInfo/findList',
    method: 'get',
    params: query
  })
}


// 查询场所信息详细
export function getBaseFieldInfo(fieldCode) {
  return request({
    url: '/system/baseFieldInfo/getInfo/' + fieldCode,
    method: 'get'
  })
}

// 新增场所信息
export function addBaseFieldInfo(data) {
  return request({
    url: '/system/baseFieldInfo/add',
    method: 'post',
    data: data
  })
}

// 修改场所信息
export function updateBaseFieldInfo(data) {
  return request({
    url: '/system/baseFieldInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除场所信息
export function delBaseFieldInfo(fieldCode) {
  return request({
    url: '/system/baseFieldInfo/remove/' + fieldCode,
    method: 'get'
  })
}

// 导出场所信息
export function exportBaseFieldInfo(query) {
  return request({
    url: '/system/baseFieldInfo/export',
    method: 'get',
    params: query
  })
}
